<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class ProductMaps extends TimeModel
{

    protected $name = "product_maps";

    protected $deleteTime = false;

    public function category()
    {
        return $this->belongsTo('app\admin\model\Category', 'category_id', 'id');
    }
    public function supplier()
    {
        return $this->belongsTo('app\admin\model\Supplier', 'supplier_id', 'id');
    }
    public function rule()
    {
        return $this->belongsTo('app\admin\model\Rule', 'rule_id', 'id');
    }
    

}